<div class="row">
    <div class="col-lg-12">
        <div class="ibox ">
            <div class="ibox-title">
                <h5>设备管理信息</h5>
                <div class="ibox-tools" style="top:10px;">
                    <button type="button" v-if="viewMachineInfo.index != 2" class="btn btn-primary btn-sm" style="margin-right:10px;"  v-on:click="_openSelectMachineInfoModel()">
                        <i class="glyphicon glyphicon-search"></i> 选择设备管理</button>

                    <button type="button" v-if="viewMachineInfo.index != 2" class="btn btn-primary btn-sm" v-on:click="_openAddMachineInfoModel()">
                        <i class="glyphicon glyphicon-plus"></i> 添加设备管理</button>
                </div>
            </div>
            <div class="ibox-content">
                <div class="row">
<div class="col-sm-4">
                        <div class="form-group">
                            <label class="col-form-label" >设备ID：</label>
                            <label class="">{{viewMachineInfo.machineId}}</label>
                        </div>
</div>
<div class="col-sm-4">
                        <div class="form-group">
                            <label class="col-form-label" >区域ID：</label>
                            <label class="">{{viewMachineInfo.caId}}</label>
                        </div>
</div>
<div class="col-sm-4">
                        <div class="form-group">
                            <label class="col-form-label" >设备编码：</label>
                            <label class="">{{viewMachineInfo.machineCode}}</label>
                        </div>
</div>
</div>
<div class="row">
<div class="col-sm-4">
                        <div class="form-group">
                            <label class="col-form-label" >设备版本：</label>
                            <label class="">{{viewMachineInfo.machineVersion}}</label>
                        </div>
</div>
<div class="col-sm-4">
                        <div class="form-group">
                            <label class="col-form-label" >设备类型：</label>
                            <label class="">{{viewMachineInfo.machineTypeCd}}</label>
                        </div>
</div>
<div class="col-sm-4">
                        <div class="form-group">
                            <label class="col-form-label" >小区ID：</label>
                            <label class="">{{viewMachineInfo.govCommunityId}}</label>
                        </div>
</div>
</div>
<div class="row">
<div class="col-sm-4">
                        <div class="form-group">
                            <label class="col-form-label" >设备名称：</label>
                            <label class="">{{viewMachineInfo.machineName}}</label>
                        </div>
</div>
<div class="col-sm-4">
                        <div class="form-group">
                            <label class="col-form-label" >授权码：</label>
                            <label class="">{{viewMachineInfo.authCode}}</label>
                        </div>
</div>
<div class="col-sm-4">
                        <div class="form-group">
                            <label class="col-form-label" >设备IP：</label>
                            <label class="">{{viewMachineInfo.machineIp}}</label>
                        </div>
</div>
</div>
<div class="row">
<div class="col-sm-4">
                        <div class="form-group">
                            <label class="col-form-label" >设备mac：</label>
                            <label class="">{{viewMachineInfo.machineMac}}</label>
                        </div>
</div>
<div class="col-sm-4">
                        <div class="form-group">
                            <label class="col-form-label" >位置ID,请查看：</label>
                            <label class="">{{viewMachineInfo.locationTypeCd}}</label>
                        </div>
</div>
<div class="col-sm-4">
                        <div class="form-group">
                            <label class="col-form-label" >对象ID：</label>
                            <label class="">{{viewMachineInfo.locationObjId}}</label>
                        </div>
</div>
</div>
<div class="row">
<div class="col-sm-4">
                        <div class="form-group">
                            <label class="col-form-label" >设备状态：</label>
                            <label class="">{{viewMachineInfo.state}}</label>
                        </div>
</div>
<div class="col-sm-4">
                        <div class="form-group">
                            <label class="col-form-label" >数据状态：</label>
                            <label class="">{{viewMachineInfo.statusCd}}</label>
                        </div>
</div>
<div class="col-sm-4">
                        <div class="form-group">
                            <label class="col-form-label" >设备心跳时间：</label>
                            <label class="">{{viewMachineInfo.heartbeatTime}}</label>
                        </div>
</div>
</div>

            </div>
        </div>
    </div>

    <vc:create path="gov/addMachine"
               callBackListener="viewMachineInfo"
               callBackFunction="chooseMachine"
    ></vc:create>


    <vc:create path="gov/chooseMachine"
               emitChooseMachine="viewMachineInfo"
               emitLoadData="viewMachineInfo"
    ></vc:create>
</div>
